package com.jumi.microservice.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Dirk
 * @Date 2020-08-11 15:21
 */
@Component
@ConfigurationProperties("payment.union-pay")
public class UnionPayConfig {

    /**
     * 版本号
     */
    private String version = "v2";

    /**
     * 商户 ID
     */
    private String merId;

    /**
     * 支付地址
     */
    private String serverUrl;

    /**
     * 退款地址
     */
    private String refundUrl;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 签名秘钥
     */
    private String key;

    /**
     * 微信支付 appId
     */
    private String appId;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getRefundUrl() {
        return refundUrl;
    }

    public void setRefundUrl(String refundUrl) {
        this.refundUrl = refundUrl;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
